<%@ include file="/WEB-INF/views/taglib.jsp" %>

<h3>Audit Form</h3>	
<div class="clear" style="height:1px">&nbsp;</div>
<form class="simpleForm auditForm" >
<c:forEach items="${records}" var="result" varStatus="status1">
	<div class="span-11">
	<fieldset> 
	<legend>
	
	<c:if test="${fn:length(records) > 1}">
		<c:if test="${status1.count==2}">Current</c:if> <c:if test="${status1.count==1}">Before</c:if> Version
	</c:if>
	<c:if test="${fn:length(records) == 1}">
		Current 
	</c:if> 
	</legend>
	
 	<c:forEach items="${result}" var="map" varStatus="status2">
 		<c:if test="${map.key ne 'Detail'}">
 		<p>
 		<label>
	  		${map.key}
	 	</label>
	 	<input type="text" value="${map.value}" />
	 	</p>
	 	</c:if>
	 	<c:if test="${map.key eq 'Detail'}">
 		<p class="clearfix">
 		<label>
	  		${map.key}
	 	</label>
	 	 
	 	</p> 
	 	<p>
	 	<textarea cols="40" rows="10">${map.value}</textarea>
	 	</p>
	 	</c:if>
 	</c:forEach>
 	
 	</fieldset>
 	</div>	
	
</c:forEach>

<c:if test="${fn:length(records) == 0}">
	<div class="notice">
 	<span class="ui-icon ui-icon-info left marginright5"></span>
 	No detailed summary is available </div>
</c:if> 

<div class="clearfix"></div>
<div class="action">
	<a href="<c:url value="/audit/search" />" class="button">Back</a>
</div>	

</form>


<script type="text/javascript">
	$(document).ready(function() {
		
	});
</script>